package com.luozongyao.eduService.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @program: guli_parent
 * @description:
 * @author: Zongyao Luo
 * @create: 2021-08-29 10:34
 **/
@Component
@FeignClient(value = "service-order",fallback = OrderFileDegradeFeignClient.class)
public interface OrderClient {

    //根据用户id和课程id查询订单信息
    @GetMapping("/eduOrder/order/isBuyCourse/{memberId}/{courseId}")
    public boolean isBuyCourse(@PathVariable("memberId") String memberId, @PathVariable("courseId") String courseId);
}
